﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Microsoft.Extensions.DependencyInjection
{
    public static class ServiceHelper
    {
        public static void RegisterRequiredServices(this ServiceCollection serviceDescriptors)
        {
            serviceDescriptors.AddAccountService(LifeScope.Singleton);
            serviceDescriptors.AddSqlServerService(LifeScope.Transient);
            serviceDescriptors.AddConfigurationService(LifeScope.Singleton);
            serviceDescriptors.AddCompanyService(LifeScope.Transient);
            serviceDescriptors.AddCarService(LifeScope.Transient);
            serviceDescriptors.AddDriverService(LifeScope.Transient);
            serviceDescriptors.AddRSEventServiceTest(LifeScope.Singleton);
        }
    }
}
